package com.ruoyi.web.domain;


import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@TableName("device_access_code")
public class DeviceAccessCode {
    @TableId(value = "base_id", type = IdType.AUTO)
    private Long baseId;

    private String accessUserName;
    private String accessCode;
    private Integer accessCount;
    //-1为永久有效 存储为分钟
    private Long accessInterval;

    private String deviceId;
    @JsonFormat(pattern= "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date beginDate;
    @JsonFormat(pattern= "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date endDate;
    private String status;
    private String delFlag;
    private Long submitUserId;
    private String submitUserName;
    private String createBy;
    @JsonFormat(pattern= "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value="create_time", fill=FieldFill.INSERT)
    private Date createTime;
    private String updateBy;
    @TableField(value="update_time", fill=FieldFill.UPDATE)
    private Date updateTime;

    //访问时长设置类型，0输入 1选择
    private String intervalType;

    private String areaSelected;
}